<template>
  <a-modal
    :visible="visible"
    title="导师审核"
    @cancel="() => { $emit('close') }"
    :width="800"
  >
    <a-form :form="form">
      <a-row>
        <a-col :md="10" :sm="24">
          <a-form-item
            label="审核结果"
            :labelCol="{span: 7,offset: 1}"
            :wrapperCol="{span: 15, offset: 1}"
          >
            <a-select v-decorator="['autstate',
              {
                rules: [{ required: true, message: '请选择审核结果!' }],
              }]">
              <a-select-option key="02" value="02">通过</a-select-option>
              <a-select-option key="03" value="03">不通过</a-select-option>
            </a-select>
          </a-form-item>
        </a-col>
        <!-- <a-col :md="14" :sm="24">
          <a-form-item
            label="审核备注"
            :labelCol="{span: 6,offset: 1}"
            :wrapperCol="{span: 16, offset: 1}"
          >
            <a-input type="textarea" v-decorator="['shbz',
              {
                rules: [{ required: true, message: '请填写审核说明!' }],
              }]" :autosize="{ minRows: 4, maxRows: 6 }"/>
          </a-form-item>
        </a-col> -->
      </a-row>
    </a-form>
    <a-row slot="footer" style="text-align: center">
      <a-button :loading="confirmLoading" @click="confirm" type="primary">确定</a-button>
    </a-row>
  </a-modal>
</template>

<script>
import { mapState } from 'vuex'

export default {
  props: ['visible'],
  data () {
    return {
      confirmLoading: false
    }
  },
  beforeCreate () {
    this.form = this.$form.createForm(this)
  },
  // computed: {
  //   ...mapState({
  //     TYPE0133: state => state.app['TYPE0133']
  //   })
  // },
  // created () {
  //   this.$store.dispatch('app/setDictionary', 'TYPE0133')
  // },
  methods: {
    confirm () {
      this.form.validateFields((err, values) => {
        if (err) {
          return
        }
        this.$emit('save', values)
      })
    }
  }
}
</script>

<style>

</style>
